<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class TestController extends Controller
{
    public function language(Request $request): array
    {
        return [
            trans('auth.failed', [], $request->getLocale()),
            $request->getLanguages(),
            $request->getLocale()
        ];
    }

    public function login_normal(Request $request): array
    {
        if (!session('is_login', 0)){
            return ['未登录'];
        }
        return ['登录成功'];
    }
}
